#ifndef ROUTEADDDIALOG_H
#define ROUTEADDDIALOG_H

#include <QDialog>

namespace Ui {
class RouteAddDialog;
}
class QCompleter;
class RouteAddDialog : public QDialog
{
    Q_OBJECT

public:
    explicit RouteAddDialog(QWidget *parent = nullptr);
    ~RouteAddDialog();

    void setRoute(QString route);

    QString route();
    QString static_route();
    QString favorite_route();

    QCompleter* make_completer(QStringList list);

private slots:
    void on_static_ip_textChanged(const QString &arg1);
    void on_static_via_ip_textChanged(const QString &arg1);
    void on_static_combox_interface_currentTextChanged(const QString &arg1);

    void on_action_favorite_add_route_triggered();

    void on_action_favorite_delete_route_triggered();

    void on_favorite_list_routes_customContextMenuRequested(const QPoint &pos);

private:
    Ui::RouteAddDialog *ui;
    void update_static_placeholder_text();
};

#endif // ROUTEADDDIALOG_H
